(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/login/login" ], {
    "2bf4": function(e, n, o) {},
    "4d75": function(e, n, o) {
        (function(e) {
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var o = {
                data: function() {
                    return {
                        openId: "",
                        check_login:0,
                        siright:0
                    };
                },
                onLoad: function() {
                    var n = this;
                    this.check_login = this.configindex.check_login;
                    e.login({
                        success: function(e) {
                            e.code && n.$api.wxappLoginApi({
                                code: e.code
                            }, function(o) {
                                "1" == o.code ? n.openId = o.data.openid : n.$common.errorToShow(e.msg), "1" == o.code ? n.session_key = o.data.session_key : n.$common.errorToShow(e.msg), 
                                "1" == o.code ? n.unionid = o.data.unionid : n.$common.errorToShow(e.msg);
                                "1" == o.code ? n.unionid = o.data.unionid : n.$common.errorToShow(e.msg);
                                "1" == o.code ? n.siright = o.data.siright : n.$common.errorToShow(e.msg);
                            });
                        }
                    });
                },
                methods: {
                    getUserInfo: function(e) {
                        this.login(e);
                    },
                    login: function(n) {
                        var o = this, t = n.detail, i = t.iv, d = t.encryptedData;
                        this.$api.wxappLogin2Api({
                            siright:this.siright,
                            open_id: this.openId,
                            unionid: this.unionid,
                            session_key: this.session_key,
                            iv: i,
                            edata: d,
                            invite_id: this.$db.get("shareId") || "",
                            is_business: this.$db.get("is_business") || "",
                            thirduserid: this.$db.get("thirduserid") || "",
                            source: this.$db.get("source") || "",
                            shtid: this.$store.state.shtid
                        }, function(n) {
                            "1" == n.code ? (o.$db.clear(), o.$db.set("userToken", n.data.token), o.$db.set("userId", n.data.user_id), 
                            o.$db.set("mobile", n.data.mobile), o.$db.set("openId", o.openId), o.$store.state.showjtk = n.data.showpf, 
                            o.$api.getUserInfoApi({
                                user_id: o.$db.get("userId")
                            }, function(n) {
                                if ("1" == n.code) {
                                    var t = n.data;
                                    o.$db.set("userInfo", t);
                                    var i = o.$store.state.redirectPage ? o.$store.state.redirectPage : "/pages/index/index";
                                    setTimeout(function() {
                                        e.reLaunch({
                                            url: i
                                        });
                                    }, 100);
                                } else o.$common.errorToShow(n.msg);
                            })) : o.$common.errorToShow(n.msg);
                        });
                    },
                    editSir: function() {
                        this.siright=1;
                    },
                    editSir2: function() {
                        this.siright=0;
                    },
                    contarct: function() {
                        var id=1;
                        e.navigateTo({
                            url: "/subpages/pages/mailing-detail/mailing-detail?type=1&id="+id
                        });
                    },
                    contarct1: function() {
                        var id=2;
                        e.navigateTo({
                            url: "/subpages/pages/mailing-detail/mailing-detail?type=2&id="+id
                        });
                    },
                    skipHome: function() {
                        e.reLaunch({
                            url: "/pages/index/index"
                        });
                    }
                }
            };
            n.default = o;
        }).call(this, o("543d").default);
    },
    "53d2": function(e, n, o) {
        (function(e) {
            o("98af"), t(o("66fd"));
            var n = t(o("b9af"));
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, e(n.default);
        }).call(this, o("543d").createPage);
    },
    b9af: function(e, n, o) {
        o.r(n);
        var t = o("eb06"), i = o("d651");
        for (var d in i) "default" !== d && function(e) {
            o.d(n, e, function() {
                return i[e];
            });
        }(d);
        o("dd00");
        var s = o("f0c5"), a = Object(s.a)(i.default, t.b, t.c, !1, null, "b35d50f6", null, !1, t.a, void 0);
        n.default = a.exports;
    },
    d651: function(e, n, o) {
        o.r(n);
        var t = o("4d75"), i = o.n(t);
        for (var d in t) "default" !== d && function(e) {
            o.d(n, e, function() {
                return t[e];
            });
        }(d);
        n.default = i.a;
    },
    dd00: function(e, n, o) {
        var t = o("2bf4");
        o.n(t).a;
    },
    eb06: function(e, n, o) {
        o.d(n, "b", function() {
            return t;
        }), o.d(n, "c", function() {
            return i;
        }), o.d(n, "a", function() {});
        var t = function() {
            this.$createElement, this._self._c;
        }, i = [];
    }
}, [ [ "53d2", "common/runtime", "common/vendor" ] ] ]);